﻿using AwesomeChromeFormUI.Attributes;
using AwesomeChromeFormUI.CommonExtensions;
using AwesomeChromeFormUI.Emitter;
using System;

namespace ExampleApp.Utils
{
    [JavascriptObject]
    public class GuidUtil
    {
        public void CreateGuid()
        {
            var payload = new { data = Guid.NewGuid().ToString(), code = 100, msg = "OK" };
            //EventEmitter.EmitByJs("event1", payload.ToJson());
            EventEmitter.EmitByMitt("myEvent", payload.ToJson());
        }
    }
}
